<!---- 模板 on 2017/3/30 -->
<script ng-init="initCss()"></script>
<div class="page">
    <header class="bar bar-nav">
        <a class="icon icon-left pull-left" href="javascript:history.go(-2);"></a>
        <h1 class="title">添加设备</h1>
    </header>
    <div class="content" ng-init="">
        <div class="content-block-title">设备基础信息</div>
        <div class="list-block">
            <ul>
                <!-- Text inputs -->
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">设备编号</div>
                            <div class="item-input">
                                <input ng-model="device.deviceNo" type="text" placeholder="设备编号">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">设备名</div>
                            <div class="item-input">
                                <input ng-model="device.deviceName" type="text" placeholder="设备名">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">设备描述</div>
                            <div class="item-input">
                                <input ng-model="device.deviceDiscription" type="text" placeholder="设备描述">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-email"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">已使用时长</div>
                            <div class="item-input">
                                <input ng-model="device.registerInfo.usedDuration" value="0" type="number"
                                       placeholder="单位（h）">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-email"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">设备购买时长</div>
                            <div class="item-input">
                                <input ng-model="device.registerInfo.usedDaysNumber" type="number" placeholder="单位（天）">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-email"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">维修已使用金额</div>
                            <div class="item-input">
                                <input ng-model="device.registerInfo.usedRepairMoney" type="number"
                                       placeholder="单位（￥）（可选）">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-email"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">维修已使用时间</div>
                            <div class="item-input">
                                <input ng-model="device.registerInfo.usedRepairTime" type="number"
                                       placeholder="单位（h）（可选）">
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <div ng-repeat="maintainPlan in device.maintainPlans">
            <div class="content-block-title">{{maintainPlan.maintainName}}</div>
            <div class="list-block">
                <ul>
                    <!-- Text inputs -->
                    <li>
                        <div class="item-content">
                            <div class="item-media"><i class="icon icon-form-email"></i></div>
                            <div class="item-inner">
                                <div class="item-title label">运行时长</div>
                                <div class="item-input">
                                    <input ng-model="maintainPlan.limitingConditionFromRunningDuration" type="number"
                                           placeholder="单位（h）">
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-media"><i class="icon icon-form-email"></i></div>
                            <div class="item-inner">
                                <div class="item-title label">待用天数</div>
                                <div class="item-input">
                                    <input ng-model="maintainPlan.limitingConditionFromDaysNumber" type="number"
                                           placeholder="单位（天）">
                                </div>
                            </div>
                        </div>
                    </li>
                    <li class="align-top">
                        <div class="item-content">
                            <div class="item-media"><i class="icon icon-form-name"></i></div>
                            <div class="item-inner">
                                <div class="item-title label">保养内容</div>
                                <div class="item-input">
                                    <textarea ng-model="maintainPlan.maintainContent" placeholder="不超过200字"></textarea>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="content-block">
            <p><a href="javascript:;" ng-click="addOtherMaintainPlan()">额外添加保养计划</a></p>
        </div>
        <div class="content-block">
            <p><a href="javascript:;" ng-click="register()" class="button button-big">提交</a></p>
        </div>
    </div>
</div>
<div ng-init="suiMobileInit()"></div>